==========================================================================================================
Instructions for Restoration of an SCS Database from a Scheduler-Created Backup Zip File
==========================================================================================================

In order to restore an SCS database MySql must be installed on the server, and the user doing the restoration must know the standard MySql root, admin and scs user passwords.

To restore an SCS database from the backup zip file:

First extract the zip file to a location on the hard drive. Then using MySql Workbench:

1.  Logon to MySql using the root account if the admin account does not exist.  Otherwise login using the admin account credentials.  User accounts can be found on the Administration tab > Users and Privileges

2.  If an scs database exists on the server, drop it (Schemas tab).

3.  Import the first database dump file ([backup_1_file_name]):

	a. On the Administration tab select Data Import/Restore.  On the Import from Disk tab select Import from Self-Contained File, and browse to the extracted [backup_1_file_name] file.
	b. Click the Start Import button.  Once complete the Import Progress tab will show details.
	c. Import of the [backup_1_file_name] creates the scs database schema, all tables except for the excluded tables (message, app_log, app_error_log), all stored procedures, functions, and events.
	
4.  Import the second database dump file to create empty tables for those tables that were ignored in [backup_1_file_name]:

	a. On the Administration tab select Data Import/Restore.  On the Import from Disk tab select Import from Self-Contained File, and browse to the extracted [backup_2_file_name] file.
	b. In the Default Schema to be Imported To section, select the newly created scs database as the default schema.
	c. Click the Start Import button.  Once complete the Import Progress tab will show details.
	d. Import of the [backup_2_file_name] creates the the excluded tables (message, app_log, app_error_log), but with no data.

5.  To ensure that all required accounts are present and permissions are granted, run the extracted create_scs_users.sql script after first replacing the "scspasswordgoeshere" with the correct scs user password, and the "adminpasswordgoeshere" with the correct admin user password.
